package com.shengqiang.zhenhuiTransfer.entity;

import lombok.Data;

@Data
public class Result<T> {

    // 0.成功 1.失败
    private int code;

    private String msg;

    private T data;

    public Result() {
    }

    public Result(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Result(int code, String msg, T data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }
}
